<%--
  Created by IntelliJ IDEA.
  User: TYZ
  Date: 2020/3/12
  Time: 19:21
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<% String path = request.getContextPath();%>
<html>
<head>
    <title>Title</title>
</head>
<body>
<form action="">
    角色名：<input type="text" name="roleName" id="roleName"><br>
    请选择权限：<ul id="menuZtree" class="ztree"></ul>
</form>
    <script type="text/javascript">
        var setting = {
            async: {
                enable: true,
                url:"<%=path %>/menuController/getZTree",
                autoParam: ["id", "name"]
            },
            check: {
                enable: true,
                chkStyle: "checkbox",
                chkboxType: {"Y": "p", "N": "s"}
            }
        };
        $(document).ready(function(){
            $.fn.zTree.init($("#menuZtree"), setting);
        });
    </script>
</body>
</html>
